package org.dromara.learning_xq.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

/**
 * 章节(AsChapterContent)表实体类
 *
 * @author makejava
 * @since 2024-08-21 09:30:46
 */
@SuppressWarnings("serial")
@Data
@TableName("as_chapter_content")
public class AsChapterContent{
    @TableId
    private Long id;

    private Long pId; // 父节点ID

    private String chapterAffiliation; // 所属章次

    private String belongingSection; // 所属小节

    @TableField(exist = false)
    private List<AsChapterContent> children = new ArrayList<>(); // 子节点


}

